package svc

import (
	"mail/service/property/api/internal/config"
	"mail/service/property/rpc/propertyclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config      config.Config
	PropertyRpc propertyclient.Property
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		PropertyRpc: propertyclient.NewProperty(zrpc.MustNewClient(c.PropertyRpc)),
	}
}
